<?php
	$menu = new Menu();
	$product = new Post();
	
?>
<link rel='stylesheet' type='text/css' href='<?php echo HTTP_SERVER.DIR_VIEW?>css/product.css'>
<div class="ben-section">

<div class=" ben-section-title"><?php echo $objMenu->getPath(""," - ",$lang)?></div>

<!--<div class="ben-item-separator"></div>-->
<?php
$datapro = $product->getByMenu($objMenu->MenuID);
if(count($datapro))
{
?>
<div class="ben-section-content">
	<h2><?php echo $objMenu->MenuName?></h2>
	<?php foreach($datapro as $item) {?>
    <?php
    $obj = new Menu();
	$obj->loadByKeyLang($item['NewsTypeID'],$lang);
	
	?>
    <div>
        <table class="ben-left product">
            <tr>
                <td>
                    
                    <?php if($item['ImageID'] != 0){ ?>
                    <a class="islink" href="<?php echo $obj->createLink($obj,$lang).$item['PostID'] ?>">
                    	<img src='<?php echo $img->resizePNG($item['ImagePath'],170,170)?>' class='ben-center' />
                    </a>
                    <?php }?>
                    
                </td>
            </tr>
            <tr>
                <td>
                    <div align="center"><a href="<?php echo $obj->createLink($obj,$lang).$item['PostID'] ?>"><h6><?php echo $item['Title']?></h6></a></div>
                    <div align="center"><?php echo numberFormat($item['Price'])?> VNĐ</div>
                    <div align="center">
                        <a href="<?php echo $obj->createLink($obj,$lang).$item['PostID'] ?>">Chi tiết</a>
                    </div>
                </td>
            </tr>
        </table>
        
        
        
        
    </div>
    <?php } ?>
</div>
    


<div class="clearer">&nbsp;</div>

<?php
}
?>
</div>